Optimal. Leaf size=117 \[ \frac{2 F\left (\left .\frac{1}{2} \left (e+f x-\frac{\pi }{2}\right )\right |2\right ) (3 a B+3 A b+b C)}{3 f}+\frac{2 E\left (\left .\frac{1}{2} \left (e+f x-\frac{\pi }{2}\right )\right |2\right ) (b B-a (A-C))}{f}-\frac{2 a A \cos (e+f x)}{f \sqrt{\sin (e+f x)}}-\frac{2 b C \sqrt{\sin (e+f x)} \cos (e+f x)}{3 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.219201, antiderivative size = 117, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 41, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.122, Rules used = {3031, 3023, 2748, 2641, 2639} \[ \frac{2 F\left (\left .\frac{1}{2} \left (e+f x-\frac{\pi }{2}\right )\right |2\right ) (3 a B+3 A b+b C)}{3 f}+\frac{2 E\left (\left .\frac{1}{2} \left (e+f x-\frac{\pi }{2}\right )\right |2\right ) (b B-a (A-C))}{f}-\frac{2 a A \cos (e+f x)}{f \sqrt{\sin (e+f x)}}-\frac{2 b C \sqrt{\sin (e+f x)} \cos (e+f x)}{3 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3031
Rule 3023
Rule 2748
Rule 2641
Rule 2639
Rubi steps
\begin{align*} \int \frac{(a+b \sin (e+f x)) \left (A+B \sin (e+f x)+C \sin ^2(e+f x)\right )}{\sin ^{\frac{3}{2}}(e+f x)} \, dx &=-\frac{2 a A \cos (e+f x)}{f \sqrt{\sin (e+f x)}}-2 \int \frac{\frac{1}{2} (-A b-a B)-\frac{1}{2} (b B-a (A-C)) \sin (e+f x)-\frac{1}{2} b C \sin ^2(e+f x)}{\sqrt{\sin (e+f x)}} \, dx\\ &=-\frac{2 a A \cos (e+f x)}{f \sqrt{\sin (e+f x)}}-\frac{2 b C \cos (e+f x) \sqrt{\sin (e+f x)}}{3 f}-\frac{4}{3} \int \frac{\frac{1}{4} (-3 A b-3 a B-b C)-\frac{3}{4} (b B-a (A-C)) \sin (e+f x)}{\sqrt{\sin (e+f x)}} \, dx\\ &=-\frac{2 a A \cos (e+f x)}{f \sqrt{\sin (e+f x)}}-\frac{2 b C \cos (e+f x) \sqrt{\sin (e+f x)}}{3 f}-(-b B+a (A-C)) \int \sqrt{\sin (e+f x)} \, dx-\frac{1}{3} (-3 A b-3 a B-b C) \int \frac{1}{\sqrt{\sin (e+f x)}} \, dx\\ &=\frac{2 (b B-a (A-C)) E\left (\left .\frac{1}{2} \left (e-\frac{\pi }{2}+f x\right )\right |2\right )}{f}+\frac{2 (3 A b+3 a B+b C) F\left (\left .\frac{1}{2} \left (e-\frac{\pi }{2}+f x\right )\right |2\right )}{3 f}-\frac{2 a A \cos (e+f x)}{f \sqrt{\sin (e+f x)}}-\frac{2 b C \cos (e+f x) \sqrt{\sin (e+f x)}}{3 f}\\ \end{align*}
Mathematica [A] time = 0.748548, size = 97, normalized size = 0.83 \[ -\frac{2 F\left (\left .\frac{1}{4} (-2 e-2 f x+\pi )\right |2\right ) (3 a B+3 A b+b C)+6 E\left (\left .\frac{1}{4} (-2 e-2 f x+\pi )\right |2\right ) (a (C-A)+b B)+\frac{2 \cos (e+f x) (3 a A+b C \sin (e+f x))}{\sqrt{\sin (e+f x)}}}{3 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 1.063, size = 516, normalized size = 4.4 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (C \sin \left (f x + e\right )^{2} + B \sin \left (f x + e\right ) + A\right )}{\left (b \sin \left (f x + e\right ) + a\right )}}{\sin \left (f x + e\right )^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left ({\left (C a + B b\right )} \cos \left (f x + e\right )^{2} -{\left (A + C\right )} a - B b +{\left (C b \cos \left (f x + e\right )^{2} - B a -{\left (A + C\right )} b\right )} \sin \left (f x + e\right )\right )} \sqrt{\sin \left (f x + e\right )}}{\cos \left (f x + e\right )^{2} - 1}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (C \sin \left (f x + e\right )^{2} + B \sin \left (f x + e\right ) + A\right )}{\left (b \sin \left (f x + e\right ) + a\right )}}{\sin \left (f x + e\right )^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]